package com.liangplus.elasticsearch.config;

import com.liangplus.elasticsearch.service.InitService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author liyumin
 * @date 2019/10/30
 * @description
 */
@Configuration
public class InitBeanConfig {


    @Autowired
    private InitService initService;
    @Bean
    public  void  init(){
        initService.initData();
    }
}
